package com.jctrip.hotel.management.model.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.springframework.context.annotation.Bean;

import java.util.Date;
import java.util.List;

/**
 * @Author: ch
 * @CreateTime: 2023/12/25 4:48 PM
 * @Description:
 */
@ApiModel(value = "马甲下线日志-返回体")
@Data
@Builder
public class GetCloseLogsResult {
    @ApiModelProperty(value = "日志对象列表")
    private List<CloseLogInfo> records;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后一次处理时间")
    private Date lastTime;
    @ApiModelProperty(value = "总数")
    private Long total;
    @ApiModelProperty(value = "当前页码")
    private Long current;
    @ApiModelProperty(value = "当前页面大小")
    private Long size;
    @ApiModelProperty(value = "共几页")
    private Long pages;

    @ApiModel("日志对象")
    @Data
    @Builder
    public static class CloseLogInfo{
        @ApiModelProperty(value = "渠道账户名称")
        private String routeName;
        @ApiModelProperty(value = "日志内容")
        private String info;
        @ApiModelProperty(value = "操作账户")
        private String operator;
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;
    }
}
